<?php

namespace app\api\biz;

use app\common\biz\Biz;
use app\common\biz\list\Lists;
use app\common\biz\list\Search;
use app\common\model\biz\SysUserLogLogin;
use app\common\model\biz\SysUserLogOperate;


class LogBiz extends Biz
{

    public static function loginList(array $searchParams = []): LogBiz
    {
        $search = new Search($searchParams);
        $lists = new Lists(new SysUserLogLogin(), $search);
        return self::success($lists->data());
    }

    public static function operateList(array $searchParams = []): LogBiz
    {
        $search = new Search($searchParams);
        $lists = new Lists(new SysUserLogOperate(), $search);
        return self::success($lists->data());
    }
}